import request from '@/utils/request.js'

const prev = '/todo/';

export default {
  // 审批任务列表
  list: function(query, pageReq) {
    return request({
      url: `${prev}approveList/0`,
      method: 'post',
      data: query,
      params: pageReq
    })
  },
  // 提交审批
  sub: function(params) {
    return request({
      url: '/todo/doTask',
      method: 'post',
      data: params
    })
  },
}

